﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ElfTyping.States.StoryState
{
    public class TextAction : StoryAction
    {
        string Text;
        bool IsLeftTalking;

        public TextAction(StoryState storyState, string text, bool isLeftTalking)
            : base(storyState)
        {
            Text = text;
            IsLeftTalking = isLeftTalking;
        }

        public override void OnEnd()
        {
            StoryState.Text = Text;
            StoryState.IsLeftCharacterSpeaking = IsLeftTalking;

            base.OnEnd();
        }
    }
}
